from itertools import chain
from pypinyin import pinyin, Style
import uuid
import datetime


def to_pinyin(s):
    return "".join(chain.from_iterable(pinyin(s["display"], style=Style.TONE3)))


def getUUID():
    return str(uuid.uuid4())


def getNow():
    return int(datetime.datetime.now().timestamp() * 1000)
